﻿using BuddHa.FileStorage.AliCloud.Models;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuddHa.FileStorage.AliCloud
{
    public static class ServiceCollectionExtensions
    {
        public static void AddAliCloudStorage(this IServiceCollection services, Action<FileStorageSetting> action)
        { 
            services.Configure<FileStorageSetting>(action);
            services.AddTransient<IFileStorage, AliCloudStorage>();
        }
    }
}
